package com.blockmeta.bbs.businesslibrary.flutter;

import com.blockmeta.bbs.baselibrary.utils.gson.GsonUtil;

public class MessageEvent {
    public static final String SETSP = "SETSP";

    private String type;
    private String key;
    private String value;

    public MessageEvent(String type, String key, String value) {
        this.type = type;
        this.key = key;
        this.value = value;
    }

    public String toJson(){
        return GsonUtil.buildGson().toJson(this);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
